{% extends 'admin/master.html' %}

{% block body %}
  {% if current_user.is_authenticated %}
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-12">
                            <h1 class="page-header">首页</h1>
                        </div>
                        <!-- /.col-lg-12 -->
                    </div>
                    <!-- /.row -->
                    <div class="timeline-heading">
                        <h4 class="timeline-title">欢迎进入后台管理界面</h4>
                        <p>
                            <small class="text-muted"><i class="fa fa-clock-o"></i> {{ current_user.email }}
                            </small>
                        </p>
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.container-fluid -->
  {% else%}
<center>
  <section class="content">
    <div class="col-sm-12">
      <h1>Website-Admin </h1>
      <p class="lead">
        Authentication
      </p>
      {% if not current_user.is_authenticated %}
      <p>You can register as a regular user, or log in as a superuser with the following credentials: <br><br>
        <br>
      <p>
        <a class="btn btn-primary" href="{{ url_for('security.login') }}">Login</a> <a class="btn btn-default" href="{{ url_for('security.register') }}">Register</a>

      {% endif %}
      <br>
      <p>
        <a class="btn btn-primary" href="/index"><i class="glyphicon glyphicon-chevron-left"></i> Back</a>
      </p>
    </div>
  </section>
</center>

  <br><br><br><br><br><br><br><br><br>
  <br><br><br><br><br><br><br><br><br><br>
{% endif %}
{% endblock %}
